<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
	<form  method="post" id="borrtypeForm" name="borrtypeForm">
	<input type="hidden" id="id" name="id" value="<?php echo $borr_type['id'];?>" />
	<input type="hidden" id="act" name="act" value="update" />
		<table class="table table-bordered table-hover m10">
			<tr>
		        <td class="tableleft">名称</td>
		        <td> <input type="text" name="name" id="name" value="<?php echo $borr_type['name'];?>"  /></td>
		    </tr>
		    <tr>
		        <td class="tableleft">简称</td>
		        <td><input type="text" name="singtel" id="singtel" value="<?php echo $borr_type['singtel'];?>" /></td>
		    </tr>
		    <tr>
		        <td class="tableleft"> </td>
		        <td><button type="button" class="btn btn-success"  onclick="adSubmit();" >提交</button></td>
		    </tr>
		</table>
	</form>
</div>
<script type="text/javascript">
function adSubmit(){
	var options = {
		url : '/sys_admin/borrow/borrow_type',
		dataType: "json",
		type:"post",
		success : function(ret) {
			if(ret.msg=='1'){
				alert("操作成功");
				window.location.href ='/sys_admin/borrow/borrow_type_list';
			}else{
				alert(ret.msg);
			}
			
		}
	};
	$("#borrtypeForm").ajaxSubmit(options);
	return false;
}
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
